import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router);
import login from './components/login.vue'
import home from './components/home.vue'
import welcome from './components/welcome.vue'
import users from  './components/user.vue'
import list from './components/goods/list.vue'

export default new Router({
    routes:[
        {path:'/',redirect:'/login'},
        {path:'/login',component:login},
        {path:'/home',component:home,
        redirect:'/welcome',
        children:[
           {path:'/welcome',component:welcome},
           {path:'/users',component:users},
           {path:'/goodslist',component:list}
        ]},

    ]
})